package netty.im.server;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServerStart {

	
	/**
	 * 启动server服务
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-context.xml");
		SimpleChatServer  chatServer= (SimpleChatServer) context.getBean("simplechatserver");
		chatServer.init();
	}

}
